<template>
	<view>
		<!-- 打印日志-->
		<button @click="onLog()">Console.log</button>
		<button @click="onDebug()">Console.debug</button>
		<button @click="onInfo()">Console.info</button>
		<button @click="onWarn()">Console.warn</button>
		<button @click="onError()">Console.error</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				myname:"LL"
			}
		},
		methods: {
			onLog(){
				console.log("onLog()-->myname:"+this.myname)
				// console.log("onLog()-->myname:",this.myname)
			},
			onDebug(){
				console.debug("onDebug")
			},
			onInfo(){
				console.onInfo("onInfo")
			},
			onWarn(){
				console.onwarn("onWarn")
					if(true){
						console.log(true);
					}else{
						console.warn("快出错");
					}
			},
			onError(){
				console.onError("onError")
				
			},
			
		}
	}
</script>

<style>
button{
	margin: 20rpx;
}
</style>
